/*******************************************************************
 *
 * Copyright (C), 2021-2022, Letstrong, All rights reserved.
 *
 * Author      :
 * Create Time : 2020-12-17
 * Version     : v0.1
 * Description : hal_bat_table header file
 *******************************************************************/
#ifndef __APP_BATT_TABLE_H__
#define __APP_BATT_TABLE_H__

/*----------------------------Head file----------------------------*/
#include "stdint.h"
#include "user_config.h"

/*----------------------------macro file---------------------------*/
#define BAT_PERCENT_TABLE_NUM				100

/*----------------------------type define--------------------------*/

/*--------------------------var declarative------------------------*/

#if (BATT_TYPE == LI_BATT)

const uint16_t ChargeBatLevelTable[BAT_PERCENT_TABLE_NUM] = {
	3500, 3556, 3662, 3672, 3683, 3694, 3704, 3715, 3725, 3736,
	3747, 3758, 3769, 3779, 3790, 3800, 3810, 3821, 3831, 3841,
	3852, 3862, 3872, 3883, 3893, 3904, 3914, 3925, 3936, 3947,
	3952, 3954, 3956, 3958, 3960, 3962, 3964, 3966, 3968, 3970,
	3972, 3974, 3976, 3978, 3980, 3982, 3984, 3986, 3988, 3990,
	4002, 4004, 4006, 4008, 4010, 4012, 4014, 4016, 4018, 4020,
	4022, 4024, 4026, 4028, 4030, 4032, 4034, 4036, 4038, 4040,
	4042, 4044, 4046, 4048, 4050, 4052, 4054, 4056, 4058, 4060,
	4062, 4064, 4066, 4068, 4070, 4072, 4074, 4076, 4078, 4080,
	4082, 4084, 4086, 4088, 4090, 4092, 4094, 4096, 4098, 4150,
};

// 放电状态电压等级查找表
const uint16_t DisChargeBatLevelTable[BAT_PERCENT_TABLE_NUM] = {
	3600, 3614, 3624, 3631, 3639, 3647, 3665, 3672, 3676, 3678,
	3680, 3682, 3686, 3693, 3699, 3705, 3711, 3716, 3721, 3726,
	3730, 3733, 3737, 3740, 3743, 3747, 3750, 3753, 3756, 3758,
	3761, 3764, 3766, 3769, 3771, 3774, 3777, 3779, 3782, 3785,
	3788, 3790, 3794, 3797, 3800, 3803, 3807, 3811, 3814, 3818,
	3823, 3827, 3831, 3836, 3842, 3847, 3853, 3860, 3866, 3874,
	3881, 3888, 3895, 3902, 3909, 3916, 3923, 3930, 3937, 3944,
	3951, 3958, 3965, 3972, 3979, 3986, 3993, 4000, 4007, 4014,
	4021, 4026, 4031, 4036, 4041, 4046, 4051, 4056, 4061, 4066,
	4071, 4074, 4076, 4078, 4080, 4082, 4084, 4086, 4088, 4090
};

#elif (BATT_TYPE == ANEROID_BATT)

// 放电状态电压等级查找表
const uint16_t DisChargeBatLevelTable[BAT_PERCENT_TABLE_NUM] = {
	1000, 1020, 1040, 1060, 1080, 1100, 1120, 1140, 1160, 1180,
	1200, 1210, 1220, 1230, 1240, 1243, 1246, 1249, 1252, 1255,
	1258, 1261, 1264, 1267, 1270, 1273, 1276, 1279, 1282, 1285,
	1288, 1291, 1294, 1297, 1300, 1303, 1306, 1309, 1312, 1315,
	1318, 1321, 1324, 1327, 1330, 1333, 1336, 1339, 1342, 1345,
	1348, 1351, 1354, 1357, 1360, 1363, 1366, 1369, 1372, 1375,
	1378, 1381, 1384, 1387, 1390, 1393, 1396, 1399, 1402, 1405,
	1408, 1411, 1414, 1417, 1420, 1423, 1426, 1429, 1432, 1435,
	1438, 1441, 1444, 1447, 1450, 1453, 1456, 1459, 1462, 1465,
	1468, 1471, 1474, 1477, 1480, 1483, 1486, 1489, 1492, 1495,
};

#endif

/*-----------------------------------------------------------------*/

#endif // __APP_BATT_TABLE_H__

